﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Composite.Regions;
using UserLoginModule.Views.UserLoginView;

namespace UserLoginModule.Controllers
{
    public class LoginCommand:ILoginCommand
    {
        private readonly IRegionManager regionManager;
        private readonly IUserLoginPresentationModel userLoginPresentationModel;
        public LoginCommand(IRegionManager regionManager, IUserLoginPresentationModel userLoginPresentationModel)
        {
            this.regionManager = regionManager;
            this.userLoginPresentationModel = userLoginPresentationModel;
        }

        public void RunDataList()
        {
            this.regionManager.Regions["MainRegion"].Deactivate(userLoginPresentationModel.View);
        }
       
    }
}
